﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Config;
using Intorise.Net;
using Intorise.Common;

namespace WowAnswerCheckApp
{
    class Program
    {
        public static AutoCheckConfig CheckConfig = null;
        public static List<string> AnswerDict = new List<string>();
        public static Adsl ADSL = null;

        [STAThread]
        static void Main(string[] args)
        {
            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
            CheckConfig = new AutoCheckConfig();
            ConfigManager.BusinessConfig = CheckConfig;
            ConfigManager.Init();
            ADSL = new Adsl();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Form.CheckForIllegalCrossThreadCalls = false;
            Application.Run(new Main());
        }

        static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
        {
            ConsoleBLL.WriteLineError(e.Exception.Message);
            ConsoleBLL.WriteLineError(e.Exception.StackTrace);
        }
    }
}
